package com.mall.model.entity.Ums;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

 /**
 * 用户表
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "用户表",description = "")
@TableName("ums_user")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UmsUser implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 用户名 */
    @Schema(name = "用户名",description = "")
    private String username;
    /** 手机号 */
    @Schema(name = "手机号",description = "")
    private String phone;
    /** 邮箱号 */
    @Schema(name = "邮箱号",description = "")
    private String email;
    /** 密码 */
    @Schema(name = "密码",description = "")
    private String password;
    /** 密码盐 */
    @Schema(name = "密码盐",description = "")
    private String salt;
    /** 用户名 */
    @Schema(name = "用户名",description = "")
    private String name;
    /** 性别;0男 1女 2未知 */
    @Schema(name = "性别",description = "0男 1女 2未知")
    private Integer sex;
    /** 生日 */
    @Schema(name = "生日",description = "")
    private Date birthday;
    /** 注册时间 */
    @Schema(name = "注册时间",description = "")
    private Date registerTime;
    /** 最后登录时间 */
    @Schema(name = "最后登录时间",description = "")
    private Date lastLoginTime;
}